<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        //下列代码输出结果是什么
        a = 10;
        let a = 10;
        console.log(a);
        // 控制条报错：Uncaught ReferenceError: Cannot access 'a' before initialization
        // 使用let命令声明变量之前，该变量都是不可用的。
    </script>
</body>
</html>